package com.pervasa.demo.kitsample.impl;

import java.sql.Timestamp;

public class ResultData {

    private int firstResult;
    private int secondResult;
    private double doubleResult;
    private Timestamp timestamp = null;

    public ResultData(int value)
    {
        firstResult = value;
    }

    public ResultData(int firstValue, int secondValue)
    {
        firstResult = firstValue;
        secondResult = secondValue;
    }

    public ResultData(double doubleValue)
    {
    	doubleResult = doubleValue;
    }

    public ResultData(Timestamp ts)
    {
        timestamp = new Timestamp(ts.getTime());
    }

    public int getResultSetValue()
    {
        return firstResult;
    }

    public int getRecentValue()
    {
        return firstResult;
    }

    public int getCountValue()
    {
        return firstResult;
    }

    public int getMaxValue()
    {
        return secondResult;
    }

    public int getMinValue()
    {
        return firstResult;
    }

    public double getAvgValue()
    {
        return doubleResult;
    }

    public double getStandardDeviation()
    {
        return doubleResult;
    }

    public Timestamp getTimeStamp()
    {
        return timestamp;
    }
}
